package com.example.nio;

import java.nio.ByteBuffer;

public class NIOByteBuffer {
    public static void main(String[] args) {

        ByteBuffer byteBuffer = ByteBuffer.allocate(64);
        byteBuffer.putInt(100);
        byteBuffer.putLong(9);
        byteBuffer.putChar('a');
        byteBuffer.putShort((short) 4);
        System.out.println(byteBuffer.getInt());
        System.out.println(byteBuffer.getLong());

    }
}
